import unittest
import ddt


@ddt.ddt
class DemoTestCase(unittest.TestCase):
    # 测试数据
    data_list = [{'usrname': 'abc', 'password': '123456'}, {'usrname': 'qwer', 'password': '987654'}]

    @ddt.data(*data_list)
    def test_login(self, data):
        print(data)


if __name__ == '__main__':
    unittest.main(verbosity=2)
